const Router = require("koa-router");
const SearchController = require("../controller/SearchController");
const router = new Router({ prefix: "/search" });

// 输入框搜索建议
router.get("/suggest", SearchController.suggest);

// 有格调部分(调用本地数据)
router.get("/tabs", SearchController.tabs);

// 热门搜索
router.get("/hotPlace", SearchController.hotplace);

// 热门城市
router.get("/hotCity", SearchController.hotcity);

// 商品列表
router.get("/result", SearchController.result);

router.get("/product/:id", SearchController.product);

// 菜单数据。
router.get("/menu", SearchController.menu);

module.exports = router;
